﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cesave.Domain.PermisosModule.Entities;
using Cesave.Infrastructure.Data.Core;
using Cesave.Domain.PermisosModule.Contracts.Concesiones;
using Cesave.Infrastructure.Data.PermisosModule.Context;
using Cesave.Infrastructure.CrossCutting.Logging;

namespace Cesave.Infrastructure.Data.PermisosModule.Repositories
{
    public class ConcesionRepository
        : GenericRepositoryEx<Concesion>, IConcesionRepository
    {
        public ConcesionRepository(IPermisosModuleContext context, ITraceManager tracemanager)
            : base(context, tracemanager)
        {

        }

        public Concesion FindConcesionByGuidSpecification(ConcesionByGuidSpecification specification)
        {
            return GetBySpec(specification).FirstOrDefault();
        }
    }
}
